import request from '@/utils/request'

// 查询出库清单列表
export function listOutInfo(warehouseOutId) {
  return request({
    url: '/stock/OutInfo/list',
    method: 'get',
    params: {
      warehouseOutId
    }
  })
}

// 查询出库清单详细
export function getOutInfo(id) {
  return request({
    url: '/stock/OutInfo/' + id,
    method: 'get'
  })
}

// 新增出库清单
export function addOutInfo(data) {
  return request({
    url: '/stock/OutInfo',
    method: 'post',
    data: data
  })
}

// 修改出库清单
export function updateOutInfo(data) {
  return request({
    url: '/stock/OutInfo',
    method: 'put',
    data: data
  })
}

// 删除出库清单
export function delOutInfo(id) {
  return request({
    url: '/stock/OutInfo/' + id,
    method: 'delete'
  })
}
